package com.chen.user.system.usersystem.service.impl;

import com.chen.order.system.ordersystem.entity.OrderEntity;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * feign 调用业务类
 * @author :master
 */
@Service
@FeignClient(value = "business-system")
public interface BusinessFeignServiceImpl {

    /**
     * 下订单
     * @param entity 参数
     * @return 下单
     */
    @RequestMapping("/business/placeOrder")
    public String placeOrder(@RequestBody OrderEntity entity);
}
